package com.item.conf;


import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

//@ControllerAdvice
public class UnusualConfig {

//    @ExceptionHandler(Exception.class)
    public String ex(Exception e) {
        System.out.println("异常：" + e);
        return "redirect:http://127.0.0.1:209/500.html";
    }
}
